Post

Replies

Boosts

Views

Activity

VoiceOver Focus Remains on Selected Tab Bar Item
I have been trying to get VoiceOver focus to change when the user selects a new tab inside a UITabBar. The default behavior seems to be that it just stays on the selected tab item, which is an awful user experience. For some reason: UIAccessibility.post(notification: .screenChanged, argument: view) does not work; nor does .layoutChanged work. Is there a way to set focus when a new tab is selected on a tab bar, or will I just have to hack together a solution that does not use a UIKit UITabBarController?
1
0
2.6k
Sep ’21
SwiftUI Set Accessibility Focus for VoiceOver
When a user selects a new tab in a TabView via VoiceOver, the focus remains at the tab button, which is not an ideal user experience. With UIKit I could use: UIAccessibility.post(notification: .screenChanged, argument: UIView) to update focus; however, I can't figure out how to do something similar using SwiftUI. Is there an analogue or work around using SwiftUI, or does these ability just not exist yet?
2
0
2.2k
Sep ’21
VoiceOver Focus Remains on Selected Tab Bar Item
I have been trying to get VoiceOver focus to change when the user selects a new tab inside a UITabBar. The default behavior seems to be that it just stays on the selected tab item, which is an awful user experience. For some reason: UIAccessibility.post(notification: .screenChanged, argument: view) does not work; nor does .layoutChanged work. Is there a way to set focus when a new tab is selected on a tab bar, or will I just have to hack together a solution that does not use a UIKit UITabBarController?
Replies
1
Boosts
0
Views
2.6k
Activity
Sep ’21
SwiftUI Set Accessibility Focus for VoiceOver
When a user selects a new tab in a TabView via VoiceOver, the focus remains at the tab button, which is not an ideal user experience. With UIKit I could use: UIAccessibility.post(notification: .screenChanged, argument: UIView) to update focus; however, I can't figure out how to do something similar using SwiftUI. Is there an analogue or work around using SwiftUI, or does these ability just not exist yet?
Replies
2
Boosts
0
Views
2.2k
Activity
Sep ’21